package cn.dengta.webapp.user.entity;

import java.util.Date;

import cn.dengta.webapp.base.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 用户热云信息
* @author zw
* @since 2022-10-27
*/
@Setter
@Getter
@Accessors(chain = true)
public class UserHotCloud extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/** 渠道 */
	String realChannel;
	/** 广告推广活动名称 */
	String adCampaignName;
	/** 客户端 */
	String client;
	/** 添加时间 */
	Date addTime;


	public static final String REALCHANNEL = "real_channel";
	public static final String ADCAMPAIGNNAME = "ad_campaign_name";
	public static final String CLIENT = "client";
	public static final String ADDTIME = "add_time";



	public static UserHotCloud of(Long id, String channel, String spreadname, String client) {
		UserHotCloud userHotCloud = new UserHotCloud();
		userHotCloud.setId(id);
		userHotCloud.setClient(client);
		userHotCloud.setRealChannel(channel);
		userHotCloud.setAdCampaignName(spreadname);
		userHotCloud.setAddTime(new Date());
		return userHotCloud;
	}

}
